package com.mooke.dao.Impl;


import com.mooke.dao.teacherDao;
import com.mooke.entity.*;
import com.sun.scenario.effect.impl.sw.sse.SSEBlend_SRC_OUTPeer;
import org.apache.ibatis.session.SqlSessionFactory;
import org.mybatis.spring.support.SqlSessionDaoSupport;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

@Repository
public class TeacherDaoImpl extends SqlSessionDaoSupport implements teacherDao {

    @Autowired
    public void setSqlSessionFactory(SqlSessionFactory sqlSessionFactory)
    {
        super.setSqlSessionFactory(sqlSessionFactory);
    }

    @Override
    public boolean addVacate (String id, Map<String, Object> map){
        if(	getSqlSession().insert(id, map)>0)return true;
        return false;
    };
}
